package com.zhibang.config;

import java.io.FileWriter;
import java.io.IOException;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2017-04-05
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {
	
	public static String app_id = "9021000149693022";
	
	// 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDk0RaF+Tp+keh7cjegPm2abzwQ7WQdHFdxxSwaKHM/kNMcK6gG/e/OJyaplcfghGJzhv7VkaQuNekkYjgBwt4U36r5q752oyrngLuJRxH9ShFCpvs2QV8gTwT9ma9n6YqADq7ZpnzR+aUs6K0MFavuXiPbthG/7GlXXqqhkBw7kFszuUKsqZ5oSvXLTMUaSjp0ykAmZk7hh0KEsgvo49lsQTFSV4LkGGXbCgQuHXK9D7uWqZ+kSao6zTjx2CEbLYQnGBnnxV2Koo31MIwOGAQxPDL09J6VSAptizkha/l5hg/VXnRU6xmS6mqnP607ss5qb/h9lloSO9CqJ4YeSDalAgMBAAECggEAIPn1OgeqI3WZwLi8RY7ZsukXCgV8aSmdfJsC+R4dRer0UdoE1EUim15PFx+r97J8kdPBxDvCIprIZ+Lz2WUhJnb5qBPVVjm7xDNsU6N3dz6GcEmqaK5RLFHXEUll2x7wQ/ZZwqpY0NYetPMvhU9WQPs2RcLemf9TSzEsfC5Ns1Ob2AzUmRyqYmC6qTIQIvj3tgT7F9DM+PQ4PgWWZqbvIESpONvUFOoNkv/3aFDd0PnBsUCftxLlgTfow4vguImUfz+ND1DuQYSdVlVc8zbSvaFQ+8HgizwRZbUUybd2nGynmDzk3UBhziXix456rXlZ8Z5HJ9pyzLP5YgKsxx6C/QKBgQD4g9/GoG7oQCvbPsCiVFQvLtnnAolJWGhRSLzYwDy9JSzU8+8Nwk41xfkIn5HRUBYyTv0rbuPbHu6DMZhtVoQTCCW6ZcOpomB5nXEmg3hJrGCxbSa1NEFiFz3isiPoviSMWxbTP5wsPTbvrNtcwn5AuLBl7otv5CEGuuX/h9YxfwKBgQDrtVVcVlo4azOX73xMRNxNtMbSRlDYD7A+Ox9IBcmex4FjWPxeBN2pndHmYXas5SO/Is2hZk3qGgQBha+prJXKU2RraQRKDYev7DupgN9e5OnayGy8Dr927p1/qnF/uiB9aMHW9m4KkODM+9JFJSdzZ2wf4IByyBcZrQLympWh2wKBgF5MjAkur2bpkrqq4SW3ogoVWRHTYIy4Qz00wJPuvh13kb9soHU0GcFF0e13vzkRjpqgZmiot0VaQ1783r3+ajdejBJisxAXUUxUda8LjAVIp5grtthjb7vs3cq7leym2e94UPzv0i7nO4VOrh5Qnt+oNSc4kShwBCgtm0CPJrO5AoGBAJN935EtE710D0/GcsAC4tvZAAR6LYJVptH6CuP1gylQ67zv5NMsNkw5zitb13fu1kR3EbcqHh0b9F/DeJ0yunRlZFP13dI8zygdKWQymRN3KIJXofq3O8W/IFzPmb/0BvqSf6D0iP0hlRmPhg7wZdRH5he4UogAfrv5T/vhETq7AoGBAJ93qUYpSe4w82+PJnv+pR0OsfH0axBG6jv0/pslhw/PMDUyJgSmxWTe7IfwSTGXuSPYlaNc1M1dMkC8p5tRZvHqQr6ZlSIaGHOMKJsCGxWBTb8zgREeFqBqEwAtVpHTa9pF6+7kt8HjwcDiMn0irJN7C+JcmjSmiZnSN/ZwGdXA";
	
	// 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
	public static String alipay_public_key ="MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkVm/I0hIUcfORXps8VzHKNh0siXQDmIzpEI9aOeLl8ZtZQZBUBR9Lh0I4RDaOa6BCoueuWOCn7xEY/C4kgrYx1HFbFhoA8VlPGtEsozfn3DzNL1NyixiE/9v7TExxeLsfWLMJ7m8r7hiaygo9dWdeZIdmr/At7EBTm8ES0aVZl/5nGxhCCPRqwI3qjlkzZQQnAoL30kazgLtNcKekMHLBZVNz1lbCh7vAqiikluuuj+e9cGninyGxc0QhRGY75p1pYYnWzGBwwA561gcwNhNpoOLj/BauiNRMSupA5OZysbtDOJWbS+ZwMRfD8ANZBIadFEl783GgwrcyxOKzrC3zQIDAQAB";
	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String notify_url = "";

	// 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String return_url = "";

	// 签名方式
	public static String sign_type = "RSA2";
	
	// 字符编码格式
	public static String charset = "utf-8";
	
	// 支付宝网关
	public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
}

